package com.training.java.core.inheritance;

public class ChessPlayerDemo {

	public static void main(String[] args) {

// the constructor
	
	ChessPlayer chessPlayer =  new  ChessPlayer("SATYA",2,"IDLE");
	
// calling the overriding start method	

	chessPlayer.start();
	chessPlayer.playChess();
	chessPlayer.setStarted(true);
	System.out.println("Chess Player started playing --after setting it to true:"+chessPlayer.isStarted());	
	
	
	
	System.out.println("Chess Player Name : "+chessPlayer.getName());
	System.out.println("Chess player number :"+chessPlayer.getNumber());
	System.out.println("Chess status :"+chessPlayer.getStatus());
	System.out.println("Chess Player:"+chessPlayer.isStarted());
	
	
	
	
	
	
	
	
	
	
	
	
	
	}

}
